//package com.tjc.cloud.auth.test
//
//import com.tjc.cloud.model.auth.Account
//import org.junit.After
//import org.junit.Before
//import org.junit.Test
//import org.junit.runner.RunWith
//import org.pac4j.jwt.credentials.authenticator.JwtAuthenticator
//import org.springframework.beans.factory.annotation.Autowired
//import org.springframework.boot.test.context.SpringBootTest
//import org.springframework.test.context.junit4.SpringRunner
//import org.springframework.test.web.reactive.server.WebTestClient
//import org.springframework.test.web.reactive.server.expectBody
//import org.springframework.web.reactive.function.BodyInserters
//import javax.annotation.PreDestroy
//
//
//@RunWith(SpringRunner::class)
//@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
//class AuthTest {
//
//    @Autowired
//    lateinit var webTestClient: WebTestClient
//
//
//    @Test
//    fun auth() {
//        webTestClient.post().uri("/client/0")
//                .body(BodyInserters.fromObject(Account("13569588372", "123456")))
//                .exchange().expectStatus().isCreated
//                .expectBody<String>().consumeWith {
//                    it.responseBody
//                }
//    }
//    @After
//    fun after(){
//        println("after")
//
//    }
//
//}